package IO;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class FOSdemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fops=new FileOutputStream("./test0814.dat");
        fops.write(1100);
        fops.write(-50);
        fops.close();
        FileInputStream fips = new FileInputStream("./test0814.dat");
        int a=fips.read();
        int b=fips.read();
        System.out.println(a);
        System.out.println(b);
        fips.close();
    }
}
